﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkDAL.GrossTable
{
    public class GrossTableDataAccess
    {
        WorkerDataContext listData = new WorkerDataContext();

        public static GrossTableDataAccess Instance()
        {
            return new GrossTableDataAccess();
        }

        public List<tbGrossTable> GrossTable_GetList(string grossKey)
        {
            var grossList = from c in listData.tbGrossTables
                            where c.GrossKey == grossKey
                            orderby c.GrossTable
                            select c;

            return grossList.ToList();
        }

    }
}
